FROM openjdk:20-jdk

ADD sentinel-dashboard-2.0.0-alpha-preview.jar  /app.jar

#持久化目录
VOLUME /logs
# java -Dserver.port=8080 -Dcsp.sentinel.dashboard.server=localhost:8080 -Dproject.name=sentinel-dashboard -jar sentinel-dashboard-2.0.0-alpha-preview.jar
ENTRYPOINT ["sh","-c","exec java -Dserver.port=8080 -Dcsp.sentinel.dashboard.server=localhost:8080 -Dproject.name=sentinel-dashboard -jar /app.jar"]